/*
 * Copyright (c) 2012-2012 SUBSECRETARIA DEFENSORIA DEL ESPACIO PUBLICO - SDEP. 
 * All Rights Reserved.
 * This software is the confidential and proprietary information of SDEP
 * Developed for CONSTULT-SOFT S.A, Development Team 2012.
 *
 */
package co.gov.medellin.sdep.sisdep.common.exception;

import java.io.Serializable;

/**
 * <b>exception fremework, root or base Exception</b>
 *
 * @author  W.
 * @version 1.0, Date 08/03/2012
 * @since 1.0
 */
public abstract class RootException extends Exception implements Serializable {

	/**
	 * default serial version
	 */
	private static final long serialVersionUID = 1L;

	/** end user human being understandable final message */
	private String endUserMessage = null;

	/** end user human being understandable final message */
	private String technicalMessage = null;

	/**
	 * 
	 */
	public RootException() {
		super();
	}

	/**
	 * @param message
	 */
	public RootException(String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public RootException(Throwable cause) {
		super(cause);
	}

	/**
	 * @param message
	 * @param cause
	 */
	public RootException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @return the endUserMessage
	 */
	public final String getEndUserMessage() {
		return endUserMessage;
	}

	/**
	 * @param endUserMessage the endUserMessage to set
	 */
	public final void setEndUserMessage(String endUserMessage) {
		this.endUserMessage = endUserMessage;
	}

	/**
	 * @return the technicalMessage
	 */
	public final String getTechnicalMessage() {
		return technicalMessage;
	}

	/**
	 * @param technicalMessage the technicalMessage to set
	 */
	public final void setTechnicalMessage(String technicalMessage) {
		this.technicalMessage = technicalMessage;
	}
	
}
